package com.wyl.servlet

import javax.servlet.annotation.WebServlet
import javax.servlet.http.HttpServlet
import javax.servlet.http.HttpServletRequest
import javax.servlet.http.HttpServletResponse

class HelloServlet : HttpServlet() {
    override fun doGet(req: HttpServletRequest, resp: HttpServletResponse) {
        resp.writer.write("hello")
    }

    override fun doPost(req: HttpServletRequest, resp: HttpServletResponse) {
        this.doGet(req, resp)
    }
}